package org.framework.define.bean.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the tbl_user_message database table.
 * 
 */
@Entity
@Table(name="tbl_user_message")
public class TblUserMessage implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(unique=true, nullable=false)
	private int id;

	@Column(nullable=false)
	private byte checked;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="checked_time", nullable=false)
	private Date checkedTime;

	@Column(nullable=false, length=500)
	private String content;

	@Column(name="msg_type", nullable=false, length=5)
	private String msgType;

	@Column(name="recipient_user_id", nullable=false, length=20)
	private String recipientUserId;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="send_time", nullable=false)
	private Date sendTime;

	@Column(name="sender_user_id", nullable=false, length=20)
	private String senderUserId;

	@Column(nullable=false, length=50)
	private String title;

	public TblUserMessage() {
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public byte getChecked() {
		return this.checked;
	}

	public void setChecked(byte checked) {
		this.checked = checked;
	}

	public Date getCheckedTime() {
		return this.checkedTime;
	}

	public void setCheckedTime(Date checkedTime) {
		this.checkedTime = checkedTime;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getMsgType() {
		return this.msgType;
	}

	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}

	public String getRecipientUserId() {
		return this.recipientUserId;
	}

	public void setRecipientUserId(String recipientUserId) {
		this.recipientUserId = recipientUserId;
	}

	public Date getSendTime() {
		return this.sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public String getSenderUserId() {
		return this.senderUserId;
	}

	public void setSenderUserId(String senderUserId) {
		this.senderUserId = senderUserId;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

}